<%@page import="com.register.beans.RegisterBean"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.json-2.3.js"></script>
<script type="text/javascript" src="js/forrest.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		
		$("#divCheck").hide();
		
		$("#frmLogin").submit(function() {
			$.ajax({
				url : "ajax_memberInfo.forrest",
				type : "post",
				data : $("#frmLogin").serialize(),
				dataType : "html",
				error : function(e) {
					alert("ajax_memberInfo.forrest error");
					alert(e.responseText);
				},
				success : function(data) {
					if (data.trim() == "null") {
						$("#divCheck").show("slow");
					} else {
						$("#frmLogin").hide("slow");
						$("#memeberInfo").html(data);
					}
				}
			});
			return false;
		});

		// 		$("#registerMember").click(function(){
		// 			alert("1111");
		// 			return false;
		// 		});

	});
</script>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<form action="" method="post" id="frmLogin" name="frmLogin">
		<div>
			<table style="width: 300px; border: 1px gray solid;">
				<thead>
					<tr>
						<th colspan="2" align="left">
							<h4>로그인</h4>
						</th>
					</tr>

				</thead>
				<tbody>
					<tr>
						<td width="100"><input type="text" id="userid" name="userid" placeholder="아이디" tabindex="1" autofocus="autofocus"></td>
						<td rowspan="2" align="center"><input type="image" value="submit" id="imgLogin" name="imgLogin" src="./images/btn_login_m.png"></td>
					</tr>
					<tr>
						<td><input type="password" id="passwd" name="passwd" placeholder="비밀번호" tabindex="2"></td>
					</tr>

				</tbody>
			</table>
			<div id="divCheck">
				<label style="font-size: 10pt; color: red;">ID나 비밀번호가 틀렸습니다.</label>
			</div>
		</div>
		<div>
			<a href="registerTemplate.forrest" style="text-decoration: none; color: blue" id="registerMember">아직도 회원이 아닌가요?</a>
		</div>
	</form>
	<div id="memeberInfo"></div>
	<div id="memeberList"></div>
</body>
</html>